package com.nexus.all.dto;


import com.nexus.bean.annotation.valid.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName: NoteContentDTO
 * @Author: ZZYR
 * @Date: 2024/3/12  16:33
 * @Version 1.0.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel("笔记发布内容对象入参")
public class NoteContentDTO {

    /**
     * 笔记内容
     */
    @NotBlank(message = "笔记内容不能为空", groups = AddGroup.class)
    @ApiModelProperty(value = "笔记内容")
    private String content;
    /**
     * 笔记配图url(可多个，分号分割，最多6个)
     */
    @ApiModelProperty("笔记配图url(可多个，分号分割，最多6个)")
    private String contentIms;
    /**
     * 推荐商家（用户笔记内可选择推荐商家）
     */
    @ApiModelProperty(value = "推荐商家（用户笔记内可选择推荐商家）", hidden = true)
    private String merchant;
    /**
     * 菜品推荐
     */
    @ApiModelProperty(value = "菜品推荐", hidden = true)
    private String menuCommand;
}
